projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0238a2c
)
checkout: Fix previous commit
author
Colin Walters
<walters@verbum.org>
Wed, 11 Sep 2013 15:54:53 +0000
(11:54 -0400)
committer
Colin Walters
<walters@verbum.org>
Wed, 11 Sep 2013 15:54:53 +0000
(11:54 -0400)
Don't try to close in cases where we don't have input.
src/libostree/ostree-repo-checkout.c
patch
|
blob
|
history
diff --git
a/src/libostree/ostree-repo-checkout.c
b/src/libostree/ostree-repo-checkout.c
index 437e309960dd9e496cdb54bef3aecca432bad937..13add0479a656066fc725368aed2dcdfa0fa2041 100644
(file)
--- a/
src/libostree/ostree-repo-checkout.c
+++ b/
src/libostree/ostree-repo-checkout.c
@@
-503,8
+503,11
@@
checkout_one_file_at (OstreeRepo *repo,
}
}
- if (!g_input_stream_close (input, cancellable, error))
- goto out;
+ if (input)
+ {
+ if (!g_input_stream_close (input, cancellable, error))
+ goto out;
+ }
}
ret = TRUE;